﻿Imports System.Data
Imports System.Data.SqlClient
Imports Datos
Imports Entidad

Public Class NotaIngresoDetalleNegocio

    Dim dao As New NotaIngresoDetalleDatos

    Sub registrarNotaIngresoDetalle(ByVal nid As NotaIngresoDetalle)
        dao.registrarNotaIngresoDetalle(nid)
    End Sub

    Function obtenerCodigoAlmacenDetalle(ByVal codNota As String, ByVal tdoc As String) As String
        Return dao.obtenerCodigoAlmacenDetalle(codNota, tdoc)
    End Function

    Function cantidadDetalleIngreso(ByVal codDoc As String, ByVal tdoc As String) As Integer
        Return dao.cantidadDetalleIngreso(codDoc, tdoc)
    End Function

    Function obtenerCodigosDetalle(ByVal tdoc As String, ByVal codDoc As String, ByVal cia As String, ByVal suc As String) As DataSet
        Return dao.obtenerCodigosDetalle(tdoc, codDoc, cia, suc)
    End Function

End Class
